//
//  HeadView_1.m
//  UI09_3_UITableView 两个协议的方法使用
//
//  Created by Scott on 15/5/8.
//  Copyright (c) 2015年 www.lanou3g.com 蓝欧3G. All rights reserved.
//

#import "HeadView_1.h"

@implementation HeadView_1

- (void)dealloc
{
    [_myImage release];
    [_myImageView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.myImageView = [[UIImageView alloc] init];
        [self addSubview:self.myImageView];
        [_myImageView release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myImageView.frame = self.frame;
    self.myImageView.image = [UIImage imageNamed:self.myImage];
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
